package com.ly.work.practice;

//打印奇偶数
public class Main01 {

    //计数
    public static int i = 0;

    //new一个对象
    Main01 main01 =  new Main01();

    public static void main(String[] args) throws InterruptedException {

        //创建线程
        OddThread oddThread = new OddThread();
        EvenThread evenThread = new EvenThread();

        //执行线程
        oddThread.start();
        evenThread.start();

        Thread.sleep(5000);

        //执行结束
        System.out.println("执行结束");
    }

}
